<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\assets\AppAsset;

AppAsset::register($this);
/* @var $this yii\web\View */
/* @var $model app\modules\admin\models\AdminUser */
/* @var $form ActiveForm */
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
    <style>
        body {
            background: #009A61
        }

        label {
            display: none;
        }

        .login {
            background: #fff;
            padding: 3em;
            margin-top: 10em;
            border-radius: 0.5em;
        }
    </style>
</head>
<body>
<?php $this->beginBody() ?>

<div class="container">
    <div class="row">
        <div class="col-md-4 sm col-sm-1"></div>
        <div class="col-md-4 sm col-sm-10 login">
            <h3><p><span class='glyphicon glyphicon-user'></span>&nbsp;欢迎使用用户中心</p></h3>
            <?php $form = ActiveForm::begin(); ?>
            <?= $form->field($model, 'username')->textInput(["placeholder" => "用户名"]); ?>
            <?= $form->field($model, 'password')->passwordInput(['placeholder' => '密码']); ?>
            <div class="form-group">
                <?= Html::submitButton('登录', ['class' => 'btn btn-primary btn-block']) ?>
            </div>
            <?php ActiveForm::end(); ?>
        </div>
        <div class="col-md-4 sm col-sm-1"></div>
    </div>
</div><!-- index -->
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
